export const CascaderOptions = [
  {
    value: '2-lcyx-1',
    label: '临床医学',
    children: [
      {
        value: '2-lcyx-1-2-1',
        label: '内科学',
        children: [
          { value: '2-lcyx-1-2-3-1', label: '内科学' },
          { value: '2-lcyx-1-2-3-2', label: '心血管内科学' },
          { value: '2-lcyx-1-2-3-3', label: '呼吸内科学' },
          { value: '2-lcyx-1-2-3-4', label: '消化内科学' },
          { value: '2-lcyx-1-2-3-5', label: '血液内科学' },
          { value: '2-lcyx-1-2-3-6', label: '肾脏内科学' },
          { value: '2-lcyx-1-2-3-7', label: '内分泌内科学' },
          { value: '2-lcyx-1-2-3-8', label: '风湿病与自体免疫病学' },
          { value: '2-lcyx-1-2-3-9', label: '感染性疾病学' },
          { value: '2-lcyx-1-2-3-10', label: '神经内科学' },
        ],
      },
      {
        value: '2-lcyx-1-2-2',
        label: '儿科学',
      },
      {
        value: '2-lcyx-1-2-3',
        label: '老年医学',
      },
      {
        value: '2-lcyx-1-2-4',
        label: '神经病学',
      },
      {
        value: '2-lcyx-1-2-5',
        label: '精神病与精神卫生学',
      },
      {
        value: '2-lcyx-1-2-6',
        label: '皮肤病与性病学',
      },
      {
        value: '2-lcyx-1-2-7',
        label: '影像医学与核医学',
      },
      {
        value: '2-lcyx-1-2-8',
        label: '医学影像学',
      },
      {
        value: '2-lcyx-1-2-9',
        label: '临床检验诊断学',
      },
      {
        value: '2-lcyx-1-2-10',
        label: '护理学',
      },
      {
        value: '2-lcyx-1-2-11',
        label: '外科学',
        children: [
          { value: '2-lcyx-1-2-11-3-1', label: '普通外科学' },
          { value: '2-lcyx-1-2-11-3-2', label: '肝胆外科学' },
          { value: '2-lcyx-1-2-11-3-3', label: '胆胰外科学' },
          { value: '2-lcyx-1-2-11-3-4', label: '胃肠外科' },
          { value: '2-lcyx-1-2-11-3-5', label: '甲状腺外科' },
          { value: '2-lcyx-1-2-11-3-6', label: '泌尿外科学' },
          { value: '2-lcyx-1-2-11-3-7', label: '心血管外科学' },
          { value: '2-lcyx-1-2-11-3-8', label: '胸外科学' },
          { value: '2-lcyx-1-2-11-3-9', label: '骨外科学' },
          { value: '2-lcyx-1-2-11-3-10', label: '神经外科学' },
          { value: '2-lcyx-1-2-11-3-11', label: '整形外科学' },
        ],
      },
      {
        value: '2-lcyx-1-2-12',
        label: '妇产科学',
        children: [
          { value: '2-lcyx-1-2-12-3-1', label: '妇科学' },
          { value: '2-lcyx-1-2-12-3-2', label: '产科学' },
          { value: '2-lcyx-1-2-12-3-3', label: '围产医学' },
          { value: '2-lcyx-1-2-12-3-4', label: '助产学' },
          { value: '2-lcyx-1-2-12-3-5', label: '胎儿学' },
          { value: '2-lcyx-1-2-12-3-6', label: '妇产科手术学' },
        ],
      },
      {
        value: '2-lcyx-1-2-13',
        label: '眼科学',
      },
      {
        value: '2-lcyx-1-2-14',
        label: '耳鼻咽喉科学',
      },
      {
        value: '2-lcyx-1-2-15',
        label: '肿瘤学',
        children: [
          { value: '2-lcyx-1-2-15-3-1', label: '乳腺肿瘤学' },
          { value: '2-lcyx-1-2-15-3-2', label: '乳腺肿瘤内科' },
        ],
      },
      {
        value: '2-lcyx-1-2-16',
        label: '康复医学与理疗学',
      },
      {
        value: '2-lcyx-1-2-17',
        label: '运动医学',
      },
      {
        value: '2-lcyx-1-2-18',
        label: '麻醉学',
      },
      {
        value: '2-lcyx-1-2-19',
        label: '急诊医学',
      },
      {
        value: '2-lcyx-1-2-20',
        label: '鼻科学',
      },
      {
        value: '2-lcyx-1-2-21',
        label: '生殖医学',
      },
    ],
  },
  {
    value: '1-jcyx-1',
    label: '基础医学',
    children: [
      {
        value: '1-jcyx-1-2-1',
        label: '人体解剖与组织胚胎学',
        children: [],
      },
      {
        value: '1-jcyx-1-2-2',
        label: '免疫学',
      },
      {
        value: '1-jcyx-1-2-3',
        label: '病原生物学',
      },
      {
        value: '1-jcyx-1-2-4',
        label: '病理学与病理生理学',
      },
      {
        value: '1-jcyx-1-2-5',
        label: '法医学',
      },
      {
        value: '1-jcyx-1-2-6',
        label: '放射医学',
      },
      {
        value: '1-jcyx-1-2-7',
        label: '航空、航天与航海医学',
      },
    ],
  },
  {
    value: '3-kqyx-1',
    label: '口腔医学',
    children: [
      {
        value: '3-kqyx-1-2-1',
        label: '口腔基础医学',
      },
      {
        value: '3-kqyx-1-2-2',
        label: '口腔临床医学',
      },
    ],
  },
  {
    value: '4-ggwsyyfyx-1',
    label: '公共卫生与预防医学',
    children: [
      {
        value: '4-ggwsyyfyx-1-2-1',
        label: '流行病与卫生统计学',
      },
      {
        value: '4-ggwsyyfyx-1-2-2',
        label: '劳动卫生与环境卫生学',
      },
      {
        value: '4-ggwsyyfyx-1-2-3',
        label: '营养与食品卫生学',
      },
      {
        value: '4-ggwsyyfyx-1-2-4',
        label: '儿少卫生与妇幼保健学',
      },
      {
        value: '4-ggwsyyfyx-1-2-5',
        label: '卫生毒理学',
      },
      {
        value: '4-ggwsyyfyx-1-2-6',
        label: '军事预防医学',
      },
    ],
  },
  {
    value: '5-zyx-1',
    label: '中医学',
    children: [
      {
        value: '5-zyx-1-2-1',
        label: '中医基础理论',
      },
      {
        value: '5-zyx-1-2-2',
        label: '中医临床基础',
      },
      {
        value: '5-zyx-1-2-3',
        label: '中医医史文献',
      },
      {
        value: '5-zyx-1-2-4',
        label: '方剂学',
      },
      {
        value: '5-zyx-1-2-5',
        label: '中医诊断学',
      },
      {
        value: '5-zyx-1-2-6',
        label: '中医内科学',
      },
      {
        value: '5-zyx-1-2-7',
        label: '中医外科学',
      },
      {
        value: '5-zyx-1-2-8',
        label: '中医骨伤科学',
      },
      {
        value: '5-zyx-1-2-9',
        label: '中医妇科学',
      },
      {
        value: '5-zyx-1-2-10',
        label: '中医儿科学',
      },
      {
        value: '5-zyx-1-2-11',
        label: '中医五官科学',
      },
      {
        value: '5-zyx-1-2-12',
        label: '针灸推拿学',
      },
      {
        value: '5-zyx-1-2-13',
        label: '民族医学',
      },
      {
        value: '5-zyx-1-2-14',
        label: '中医脑病',
      },
    ],
  },
  {
    value: '6-zxyjh-1',
    label: '中西医结合',
    children: [
      {
        value: '6-zxyjh-1-2-1',
        label: '中西医结合其础',
      },
      {
        value: '6-zxyjh-1-2-2',
        label: '中西医结合临床',
      },
    ],
  },
  {
    value: '7-yx-1',
    label: '药学',
    children: [
      {
        value: '7-yx-1-2-1',
        label: '药学',
      },
      {
        value: '7-yx-1-2-2',
        label: '药物化学',
      },
      {
        value: '7-yx-1-2-3',
        label: '药剂学',
      },
      {
        value: '7-yx-1-2-4',
        label: '生药学',
      },
      {
        value: '7-yx-1-2-5',
        label: '药物分析学',
      },
      {
        value: '7-yx-1-2-6',
        label: '微生物与生化药学',
      },
      {
        value: '7-yx-1-2-7',
        label: '药理学',
      },
    ],
  },
  {
    value: '8-zyx-1',
    label: '中药学',
  },
  {
    value: '9-tzyx-1',
    label: '特种医学',
  },
  {
    value: '10-yxjs-1',
    label: '医学技术',
  },
  {
    value: '11-hlx-1',
    label: '护理学',
  },
  {
    value: '12-llx-1',
    label: '伦理学',
  },
  {
    value: '13-fx-1',
    label: '法学',
  },
  {
    value: '14-fl-1',
    label: '法律',
  },
  {
    value: '15-gl-1',
    label: '管理',
  },
  {
    value: '16-ls-1',
    label: '律师',
  },
  {
    value: '17-sqdb-1',
    label: '社区代表',
  },
  {
    value: '18-qt-1',
    label: '其他',
  },
];

export enum expType {
  // 教育
  EDUCATION = 1,
  // 培训
  TRAIN = 2,
  // 工作
  WORK = 3,
  // 研究经验
  RESEARCH = 5,
  // 专业治疗领域
  TREATMENT = 6,
  // 专业资格证
  NVQ = 7,
  // 附加信息
  ADDITIONAL = 8,
}
export const experienceColumn: any = {
  [expType.EDUCATION]: [
    {
      label: '学历',
      prop: 'education',
      width: 200,
    },
    {
      label: '专业名称',
      prop: 'major',
      width: 200,
    },
    {
      label: '开始时间',
      prop: 'startDate',
      width: 200,
    },
    {
      label: '结束时间',
      prop: 'endDate',
      width: 200,
    },
  ],
  [expType.TRAIN]: [
    {
      label: '培训名称',
      prop: 'expName',
      width: 200,
    },
    {
      label: '培训方式',
      prop: 'expMode',
      width: 200,
    },
    {
      label: '开始时间',
      prop: 'startDate',
      width: 200,
    },
    {
      label: '结束时间',
      prop: 'endDate',
      width: 200,
    },
  ],
  [expType.WORK]: [
    {
      label: '职位',
      prop: 'position',
      width: 200,
    },
    {
      label: '开始时间',
      prop: 'startDate',
      width: 200,
    },
    {
      label: '结束时间',
      prop: 'endDate',
      width: 200,
    },
  ],
  [expType.RESEARCH]: [
    {
      label: '研究分期',
      prop: 'stages',
      width: 200,
    },
    {
      label: '人员角色',
      prop: 'roleNames',
      width: 200,
    },
    {
      label: '研究分期',
      prop: 'stages',
      width: 200,
    },
    {
      label: '是否主研',
      prop: 'mainFlag',
      width: 200,
    },
    {
      label: '参与项目开始时间',
      prop: 'startDate',
      width: 200,
    },
    {
      label: '参与项目结束时间',
      prop: 'endDate',
      width: 200,
    },
  ],
  [expType.TREATMENT]: [
    {
      label: '子治疗领域',
      prop: 'subTherapeuticType',
      width: 200,
    },
  ],
  [expType.NVQ]: [
    {
      label: '资格证颁发机构',
      prop: 'expName',
      width: 250,
    },
    {
      label: '资格证编码',
      prop: 'certificationCode',
      width: 200,
    },
    {
      label: '国家',
      prop: 'countryType',
      width: 200,
    },
    {
      label: '有效期',
      prop: 'periodValidity',
      width: 200,
    },
    {
      label: '证书',
      prop: 'fileList',
      width: 200,
    },
  ],
  [expType.ADDITIONAL]: [
    {
      label: '名称',
      prop: 'expName',
      width: 200,
    },
    {
      label: '附件',
      prop: 'fileList',
      width: 200,
    },
  ],
};

export enum orgTypeEnum {
  ADMIN,
  RESEARCH_INSTITUTIONS,
  EHTIC,
  SPONSOR,
  CRO,
  SMO,
}
export const ORG_TYPE_MAP: any = {
  [orgTypeEnum.ADMIN]: '系统运维组织',
  [orgTypeEnum.RESEARCH_INSTITUTIONS]: '研究机构',
  [orgTypeEnum.EHTIC]: '伦理委员会',
  [orgTypeEnum.SPONSOR]: '申办方',
  [orgTypeEnum.CRO]: 'CRO',
  [orgTypeEnum.SMO]: 'SMO',
};

export const valueType: any = {
  professionType: 'professionTypeName',
  titleTypeId: 'titleType',
  nominalTypeId: 'nominalType',
  highestEducationId: 'highestEducation',
};
